﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="adm_editcolumnnew.aspx.vb" Inherits="georgia_globaltp.adm_editcolumnnew" validateRequest="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../../assets/js/dojoroot/dojo/dojo.js" data-dojo-config="isDebug: true,parseOnLoad: true">
</script>
<script type="text/javascript">
    dojo.require("dijit.Editor");
    dojo.require("dijit.form.DateTextBox");
    dojo.require("dojo.date.locale");
    dojo.addOnLoad(function () {
        //dojo_newsdate.set("value", dojo.date.locale.format(dojo.attr(dojo.byId("c_date"), "value"),
        //{ datePattern: "yyyy-MM-dd" }));
        dojo_newsdate.set("value", dojo.attr(dojo.byId("c_date"), "value"));
        
    });
        
    function submitForm() {
        dojo.byId("newscontent").value = dijit.byId("columnnews").value;
        return true;
    }
</script>
<style type="text/css">
        @import "../../assets/js/dojoroot/dijit/themes/soria/soria.css";
        @import "../../assets/js/dojoroot/dojo/resources/dojo.css";
</style>
</head>
<body leftMargin=0 topMargin=0 MS_POSITIONING="GridLayout" class="soria">
		<form id="frmMain" method="post" runat="server" onsubmit="return submitForm();">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td id="header" colSpan="2">
						<table style="WIDTH: 600px; HEIGHT: 312px"
							borderColor="#004080" cellSpacing="0" cellPadding="3" align="center" border="1">
							<tr>
								<td>Complete all information and click Update at the bottom of the form to update the 
									News. Note that all fields with an asterisk (<img src="../images/required.gif" border="0" alt="required field">) 
									are required.</td>
							</tr>
							<tr>
								<td style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-WEIGHT: bold; PADDING-BOTTOM: 5px; COLOR: #ffffff; PADDING-TOP: 5px; BACKGROUND-COLOR: #294984"
									colSpan="2">Update The News</td>
							</tr>
							<tr>
								<td>
									<table class="minorbox" cellSpacing="0" width="100%">

										<tr>
											<td>
												Title
											</td>
											<td>
												<asp:textbox ID="strTitle" maxlength="300" runat="server"></asp:textbox>&nbsp;<img src="../images/required.gif" border="0" alt="required field">
											</td>
										</tr>   
                                        <tr>
											<td>
												Column :
											</td>
											<td>
												<asp:DropDownList ID="column" maxlength="80" runat="server"></asp:DropDownList>&nbsp;<img src="../images/required.gif" border="0" alt="required field"/>
											</td>
										</tr> 
                                        <tr >
                                    	    <td width="8%">Date</td>
                                            <td width="80%">                                                 
                                                 <div data-dojo-id="dojo_newsdate" data-dojo-type="dijit.form.DateTextBox" id="newsdate" data-dojo-props="name:'dojo_date',constraints:{datePattern:'yyyy-MM-dd'}" runat="server" ></div>&nbsp;<img src="../images/required.gif" border="0" alt="required field" />
                                            </td>

                                        </tr> 
                                        <tr >
                                    	    <td  width="8%" align="right">Content：</td>
                                            <td width="80%">                                                 
                                                 <div  data-dojo-type="dijit.Editor" id="columnnews" style="border:1px solid #ddd;" runat="server"></div>
                                            </td>
                                        </tr> 
                                        <tr>
                                            <td  width="8%" >Picture</td>
                                            <td>
                                            <div id="imageDiv" runat="server" style="display:inline">
                                                
                                            </div>
                                            <input type="file" name="image" id="image" runat="server" onclick="return image_onclick()" />
                                            <asp:HiddenField ID="news_id" runat="server" />                                         
                                        </td>
                                        </tr>                                    
									</table>
                                   <input type="hidden" name="c_content" id="newscontent" />
                                    <input type="hidden" id="c_date" runat ="server"  />
								</td>
							</tr>
                           
							<tr>
								<td colspan="2" align="center">
									<hr size="1" width="100%"/>
									<input type="submit" id="subcolumnnews" runat="server" value="Update"/>
                                    <asp:button ID="btnCancel" Text="Cancel" Runat="server"></asp:button>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
        <div id="result" runat="server">
        </div>
	</body>
</html>
